//
//  CTAlert.h
//  ArrayPay
//
//  Created by chentao on 16/7/27.
//  Copyright © 2016年 tao.chen. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface CTAlert : NSObject
//hint 需要用户操作后才消失
#pragma mark - 确认框
+ (void)showAlert:(NSString *)message operation:(void (^)(NSInteger clickedIndex))operation;
+ (void)showAlert:(NSString *)title message:(NSString *)message operation:(void (^)(NSInteger clickedIndex))operation confirmButtonTitle:(NSString *)confirmButtonTitle cancelButtonTitle:(NSString *)cancelButtonTitle;
/**
 *  自定义按钮颜色
 *
 *  @param message   <#message description#>
 *  @param operation <#operation description#>
 */
+ (void)showAlertViewWithMessage:(NSString *)message operation:(void (^)(NSInteger clickedIndex))operation;
/** 自定义按钮颜色 */
+ (void)showAlertViewWithMessage:(NSString *)message buttonTitle:(NSString *)buttonTitle operation:(void (^)(NSInteger clickedIndex))operation;
/**
 *  自定义按钮颜色
 *
 *  @param title              <#title description#>
 *  @param message            <#message description#>
 *  @param operation          <#operation description#>
 *  @param confirmButtonTitle <#confirmButtonTitle description#>
 *  @param cancelButtonTitle  <#cancelButtonTitle description#>
 */
+ (void)showAlertViewConfirmWithTitle:(NSString *)title message:(NSString *)message operation:(void (^)(NSInteger clickedIndex))operation confirmButtonTitle:(NSString *)confirmButtonTitle cancelButtonTitle:(NSString *)cancelButtonTitle;

+ (void)showAlertTextFieldWithTitle:(NSString *)title placeholder:(NSString *)placeholder textFieldOperation:(void (^)(NSInteger clickedIndex,NSString *text))textFieldOperation confirmButtonTitle:(NSString *)confirmButtonTitle cancelButtonTitle:(NSString *)cancelButtonTitle;


@end
